-define(DEFAULT_WEIGHT, 5).
-define(MIN_WEIGHT,     1).
-define(MAX_WEIGHT,     10).

-define(NHASH, 37).

-record(addr, {ip, port}).              % Server Address

-record(server, {addr, load, weight}).  % Server infomation

-record(loads, {serverList = [],     % server load info list
                length     = 0,      % length of the list
                reqHash    = []}).   % hash table for the request

-record(loadFunc, {func = fun edrp_load:lload/2,
                   name = "least load"}).
